@echo off
chcp 65001
echo ====================================
echo    MMC 后台管理系统启动脚本
echo ====================================
echo.

echo 正在启动后端服务...
start "MMC Backend" cmd /k "cd /d backend && mvn spring-boot:run"

echo 等待后端服务启动...
timeout /t 10 /nobreak > nul

echo 正在启动前端服务...
start "MMC Frontend" cmd /k "cd /d frontend && npm run dev"

echo.
echo 启动完成！
echo 前端地址: http://localhost:3000
echo 后端地址: http://localhost:8080
echo API文档: http://localhost:8080/api/doc.html
echo.
echo 默认账号：admin
echo 默认密码：admin123
echo.
pause 